{include file="public/header" /}
<body>
<div class="layui-tab" lay-filter="test1">
  <ul class="layui-tab-title">
    <li class="layui-this" lay-id="111" >添加我的</li>
  </ul>
  <div class="layui-tab-content">
    <div class="layui-tab-item layui-show">
<div class="layui-fluid">
    <div class="layui-card" >
        <form class="layui-form" action="" id="form1" lay-filter="form1" style="padding-top:10px;">
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">头像</label>
	<div class="layui-input-block" >
<div class="layui-upload-drag" id="headsculpture_upload1">
  <i class="layui-icon"></i>
  <p>点击上传，或将文件拖拽到此处</p>
  <div class="layui-hide" id="headsculpture_uploadDemoView">
    <hr>
    <img src="" alt="上传成功后渲染" style="max-width: 196px">
  </div>
  <input type="hidden" name=headsculpture id=headsculpture value=""  >
</div>
<SCRIPT>
	layui.use(['upload', 'jquery'], function(){
		var $ = layui.$
			,upload = layui.upload;
		//拖拽上传
		  upload.render({
			elem: '#headsculpture_upload1'
			,url: uploadimgurl //改成您自己的上传接口
			,done: function(res){
				console.log(res)
			  layer.msg('上传成功');
			  $('#headsculpture').val(res.data)
			  layui.$('#headsculpture_uploadDemoView').removeClass('layui-hide').find('img').attr('src', res.data);
			}
		  });
	});
</SCRIPT>
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">用户名</label>
	<div class="layui-input-block" >
		<input type="text" id="username" name="username" lay-verify="required" autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">密码</label>
	<div class="layui-input-block" >
		<input type="text" id="password" name="password" lay-verify="required" autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">昵称</label>
	<div class="layui-input-block" >
		<input type="text" id="nickname" name="nickname"  autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">邮箱</label>
	<div class="layui-input-block" >
		<input type="text" id="mailbox" name="mailbox"  autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" style="display: flex;">
    <label class="layui-form-label">电话</label>
	<div class="layui-input-block" >
		<input type="text" id="phone" name="phone"  autocomplete="off" value="" title="" class="layui-input">
	</div>
    <div class="layui-form-mid layui-word-aux"></div>
</div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="savedata">确认添加</button>
                </div>
            </div>
        </form>
        <script>
            //分组控制
        </script>
          <script>
           {php} if(session('roleid')>5){ {/php}
            $("input[name='ispublic']").parent().parent().hide();
           {php}}{/php}
        </script>
    </div>
</div>
<script>
</script>
      {include file="public/footer" /}
      <script>
			var uploadimgurl = "{:url('/comm/upload/uploadimg')}";
      </script>
      <script src="__SKIN__/js/jmzhfsconfiguploadform.js?v=1.222"></script>
      <script type="text/javascript">
            $(function () {
                  formsubmit('form1',"{$addurl}");
            });
			layui.use(['form', 'layer','element','jquery'], function(){
				var $ = layui.$
					,form = layui.form;
			});
      </script>
<style>
    /* 每列表单过多，防止窜行，缩小宽度 */
    .layui-form-label{
       padding: 9px 10px;
    }
</style> 
</body>
</html>
    </div>
  </div>
</div>
